import java.rmi.RemoteException;

public class YaxuansChessClient {
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		try {
			ControllerCreater cc = new ControllerCreater();
			ChessPieceView cp1 = new ChessPieceView(cc.createPawn());
			ChessPieceView cp2 = new ChessPieceView(cc.createKnight());
			System.out.println("4, 3 is that a legal move: " + cp1.canJumpOverPieces() + " for " + cp1.getName());
			System.out.println("4, 3 is that a legal move: " + cp2.canJumpOverPieces() + " for " + cp2.getName());
		} catch (RemoteException e) {
			e.printStackTrace();
		}
	}
}
